Handle invalid fontnames better. (#315187, Ed Catmur)
authorMatthias Clasen <mclasen@redhat.com>
Fri, 9 Sep 2005 19:59:56 +0000 (19:59 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 9 Sep 2005 19:59:56 +0000 (19:59 +0000)
2005-09-09  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkfontbutton.c (gtk_font_button_update_font_info): Handle
invalid fontnames better.  (#315187, Ed Catmur)

ChangeLog
ChangeLog.pre-2-10
gtk/gtkfontbutton.c

index 544a636256fa06708c87f0dfa2840f8989336b60..6a763ff79dc8ed5a401fc529b199e943f5130028 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,3 @@
-2005-09-09  Matthias Clasen  <mclasen@redhat.com>
-
        * gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Handle 
        invalid fontnames better. (#136926, Michael R. Walton)
        
index 544a636256fa06708c87f0dfa2840f8989336b60..6a763ff79dc8ed5a401fc529b199e943f5130028 100644 (file)
@@ -1,5 +1,3 @@
-2005-09-09  Matthias Clasen  <mclasen@redhat.com>
-
        * gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Handle 
        invalid fontnames better. (#136926, Michael R. Walton)
        
index c9cd587db3279e223886d10a1eac47f18bfe3528..d49c62d775c2c3bfa19253bc47d1962ba1e604a8 100644 (file)
@@ -869,7 +869,7 @@ gtk_font_button_update_font_info (GtkFontButton *font_button)
 #endif
 
   style = NULL;
-  if (font_button->priv->show_style) 
+  if (font_button->priv->show_style && family
     {
       PangoFontFamily **families;
       PangoFontFace **faces;